package com.mzx.javase.enum_test;

/**
 * 枚举类：媒体类型枚举
 */
public enum TypeEnum {
    VIDEO(1,"视频"),AUDIO(2,"音频"),IMAGE(3,"图片"),FILE(4,"文件");
    private int value;

    TypeEnum() {
    }

    TypeEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private String name;
}
